#ifndef DATA_ACQUISITION_H
#define DATA_ACQUISITION_H

#include <qthread.h>

class data_acquisition :public QThread
{
public:
    explicit data_acquisition(QObject *parent=0);
   virtual void run();
    template <typename T>
    inline void linear(T& m,T value,T n,int i);

 private:
    int adc_temperature_value[12],adc_pressure_value[12];

    void QP(int A[],int n);
    void convert(int m,int R);
    void read_value(int m);
    int PSU_buf;
    float TEM_buf;
    uchar count[2];
    bool first[2];

};

#endif // DATA_ACQUISITION_H
